/*
 * Copyright (c) 2013-2013 XXXX XXXXXX, Inc.
 * XXXX Road, XXXX, XXXX State, XXXX Post code, XXXX Country.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of XXXX
 * XXXXXX, Inc. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with XXXX.
 * 
 * History
 * Date        Ver Author        Change Description
 * ----------- --- ------------- ----------------------------------------
 * 22 May 2013 001 Karl          Create
 */
package test.com.sms.selenium.sc.util;

import org.openqa.selenium.By;

import test.com.sms.selenium.framework.SeleniumPageUtil;
import test.com.sms.selenium.util.SeleniumUtil;

public class ScSearchPageUtil extends SeleniumPageUtil {
	
	public static final By SEARCH_INPUT_SEARCH_FOR_SERIAL_NUMBER_OR_PROJECT_IDENTIFIER = By.name("serial_num");
	public static final By SEARCH_BUTTON_VALIDATE_NUMBER = By.xpath("//input[@value='Validate Number']");
	
	public static final By SEARCH_LI_INVALID_PROJECT_NUMBER_WARNINGS = By.tagName("li");
	public final static By SEARCH_FONT_TEST_SITE = By.xpath("html/body/center[1]/h4/font");
	
	public static final By SEARCH_TABLE_PROJECT_INFO_TABLE = By.xpath("html/body/table/tbody/tr/td/table[1]/tbody");
	
	public static void waitForPageToLoad(){
		SeleniumUtil.waitOnElements(new By[]{
			SEARCH_INPUT_SEARCH_FOR_SERIAL_NUMBER_OR_PROJECT_IDENTIFIER, SEARCH_BUTTON_VALIDATE_NUMBER
		});
	}
}
